{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "058fb077",
   "metadata": {},
   "source": [
    "\n",
    "| 列表方法 | Description | example | 备注 |\n",
    "| ---| --- | --- | --- |\n",
    "| append() | 增加元素，增加在列表的末尾 |  names.append(\"zhichao\")， ['Mike', 'Marry', 'Jan', 'Jack', 'zhichao']\t| 如果()里为空，则在列表末尾增加一个空列表 |\n",
    "| Paragraph | 随机生成多个段落 |  |  |\n",
    "| len() | 检查集合中有多少个对象 | len(text) [12] | ()里是一个列表 |\n",
    "| in | 检查成员关系 | '广州' in text [true]|   text必须在前面运行过|\n",
    "| remove | 删除对象 | nums=[1,2,3,4]  nums. remove(3) [1,2,4] |  |\n",
    "| pop |弹出对象|nums.pop(0) [1] nums[2,4]|如果()里没数字，则删除列表中的最后一项\n",
    "|extend|扩展对象|nums.extend([3,4]) [2,3,4]|如果()里为空，则什么也不做\n",
    "|insert|插入一个对象|nums.insert(0,1) [1,2,3,4]|不仅可以插入数字，还有字符串（要加“”）\n",
    "|isdigit|判断字符串是否是数字|age_wang = '19' age_wang.isdigit() [True]|\n",
    "|count|查询数量|text.count('广州') [1]|\n",
    "|help|查看其中一个方法的具体操作内容|help(names.append)|"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "4fe71aae",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.12"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
